#encoding:utf8

'''
db :mongodb
b/s:websocket	
'''
import sys
sys.path.append("E:\\private_work\\git_work\\tornado_base")

import logging 
logging.basicConfig(level=logging.INFO)

#############################################SERVER###################################################
import handlers 

apphandlers = [
	#websocket about	
	(r"/hex/fightscene/(.*)" ,handlers.fightHandler),
	(r"/pi/piapi/(.*)", handlers.piHandler), 

	#test
	(r"/test" , handlers.testHandler),

	#--[[game (hex) logic]]--
	(r"/hex/api/(.*)" , handlers.accountHandler),  #mod account
	(r"/hex/cdn/game_verchk" ,  handlers.updateverHandler), #mod game_update
]

from framework.server import Server 

port = 8089
server = Server(apphandlers=apphandlers) 
server.run(port)
